<template>
    <div class="xl-table-content">
        <xlTable
            :columns="columns"
            :dataSource="form.policyItems"
            rowKey="policyItemId"
            :pagination="false"
            :confirmLoading="confirmLoading"
            @change="handleTableChange"
            bordered
            >
        </xlTable>
    </div>


</template>

<script>
    import xlMixin from '../../mixin/index'


    export default {
        name: "index",
        mixins:[xlMixin],
        data(){
            return{

                columns:[
                    {
                        title: '编号',
                        dataIndex: 'policyItemNo',
                        width: '100px',
                        type:'input'
                    },
                    {
                        title: '附件标题',
                        dataIndex: 'policyItemTitle',
                        type:'input'
                    },
                    {
                        title: '参考政策',
                        dataIndex: 'referPolicyIntro',
                        type:'input'
                    },
                    {
                        title: '证明材料说明',
                        dataIndex: 'referProveTitle',
                        type:'input'
                    },
                ],
                confirmLoading:false,

            }
        },

        props:{
            form:{}
        },

        created(){
            this.formatMerge()
        },

       methods:{
           uploadFile(data){
                this.$refs.uploadFile.formatData(data)
            },
           formatData(formData){
               this.form = formData;
           },
       },

    }



</script>